#ifndef JAPPCONFIG_H
#define JAPPCONFIG_H
#include <vector>
#include <string>
#include <memory>

struct NetInfo
{
    std::wstring name;
    std::wstring netAddr;
    std::wstring dbName;
    int         port;
};


extern std::vector<std::unique_ptr<NetInfo>> g_infoList;

class JAppConfig
{
public:
    JAppConfig();
    static bool InitData();
    static void setCurNetInfo(const std::wstring & str);
    static NetInfo* getCurNetInfo();
    static std::wstring getConnectionString();
    static void setConnectionString(const std::wstring & str);
};

#endif // JAPPCONFIG_H
